﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Microsoft.Phone.Controls;

namespace unifiqAnthony
{
    public partial class ListingMain : PhoneApplicationPage
    {
        public ListingMain()
        {
            InitializeComponent();

            var obj = App.Current as App;
            obj.uid = 3; // TEST DATA; Set User to uid=1
        }

        private void button2_Click(object sender, RoutedEventArgs e)
        {
            NavigationService.Navigate(new Uri("/AddListing.xaml", UriKind.Relative));
        }

        private void btn_myListing_Click(object sender, RoutedEventArgs e)
        {
            NavigationService.Navigate(new Uri("/ListingList.xaml", UriKind.Relative));
        }

        private void button3_Click(object sender, RoutedEventArgs e)
        {
            NavigationService.Navigate(new Uri("/ListingMap.xaml", UriKind.Relative));
        }
    }
}